<!DOCTYPE html>

<html>

<head>
    {%block refresh%}<meta http-equiv="refresh" content="120">{%endblock%}
    {%block title%}<title>基础模板</title>{%endblock%}
    <meta charset="utf-8">
    <link rel="shortcut icon" href={{url_for("static",filename="icon/icon.jpg" )}}>
    <link rel="stylesheet" href={{url_for("static",filename="css/divtest.css" )}}>
    
    {%block style%}
    <style>

    </style>
    {%endblock%}

</head>

<body>
    <div class="header">
        {%block head1%}<h1>基础模板</h1>{%endblock%}
    </div>

    {%block topnav%}
    <div class="topnav">
        <a href="/cgi-bin/lut.py">速查</a>
        <a href={{url_for("article.articlelist")}}>文章</a>
        <a href={{url_for('file.upload')}}>上传</a>
        <a href={{url_for('file.download')}}>下载</a>
        <a href="/cgi-bin/data_en.py">信息</a>
        <a href="{{link1}}" style="float: right;">{{arg1}}</a>
        <a href="{{link2}}" style="float: right;">{{arg2}}</a>
    </div>
    {%endblock%}

    <div class="row">
        <div class="column sides">
            {%block leftcolumn%}{%endblock%}
        </div>
        <div class="column middle">
            <ul>
                {% for message in get_flashed_messages() %}
                <div class=flash><li><p>{{ message }}</p></li></div>
                {% endfor %} 
            </ul>
                {%block middlecolumn%}{%endblock%}
        </div>
        <div class="column sides">
            {%block rightcolumn%}{%endblock%}
        </div>
    </div>

    {%block legs%}{%endblock%}

    <div class="footer">
        {%block footer%}{%endblock%}
    </div>
</body>


</html>